﻿<%@ Page Language="C#" MasterPageFile="~/Template/TicketManagement.Master" AutoEventWireup="true" CodeBehind="Request.aspx.cs" Inherits="TicketManagement.Ticket.Request" %>

<%@ Register src="../Template/uSidebar.ascx" tagname="uSidebar" tagprefix="uc1" %>
<%@ Register src="../Template/uHeader.ascx" tagname="uHeader" tagprefix="uc2" %>
<%@ Register src="../Template/uMenu.ascx" tagname="uMenu" tagprefix="uc3" %>
<%@ Register src="../Template/uFooter.ascx" tagname="uFooter" tagprefix="uc4" %>
<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .addTicket 
        {
            background-color: #FF6600 !important;
            color: #FFF !important;
        }
    </style>
    <script src="../Assets/Scripts/Validator.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Assets/Scripts/tickets.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="wrapper">
                    <div class="clear10"></div>

                    <uc2:uHeader ID="uHeader1" runat="server" />

                    <div class="clear10"></div>

                    <uc3:uMenu ID="uMenu1" runat="server" />

                    <div class="clear10"></div>
                    <div class="body">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr valign="top">
                                    <td>     
                                        <table width="100%" class="box-vang5" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr class="light">
                                                    <td class="text-top">.:. Gửi yêu cầu</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table class="box-vang5" width="100%" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr class="light">
                                                    <td class="t-l"></td>
                                                    <td class="t-c"></td>
                                                    <td class="t-r"></td>
                                                </tr>
                                                <tr class="light">
                                                    <td class="c-l"></td>
                                                    <td class="c-c" valign="top">
                                                        <table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
                                                            <tbody>
                                                                <tr class="light">
                                                                    <td><img src="../Assets/images/spaces.gif" width="1" height="1"></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table width="100%" border="0" cellpadding="5" cellspacing="0" class="font_11">
                                                            <tbody>
                                                                <tr class="light">
                                                                    <td colspan="3" class="tdbg_2" align="center">
                                                                        <label id="lblMessage" runat="server" class="color_khancap"></label>
                                                                    </td>
                                                                </tr>
                                                                <tr class="light">
                                                                    <td colspan="3" class="tdbg_2">
                                                                        Vui lòng chọn<strong style="color:#FF0000; font-size:14px"> Phòng ban</strong> và <strong style="color:#FF0000; font-size:14px">Loại dịch vụ</strong> chính xác, để có được danh sách<strong> chủ đề</strong> và danh sách <strong>dịch vụ</strong> tương ứng. 
                                                                    </td>
                                                                </tr>
                                                                <tr id="makhachhang" class="light" bgcolor="">
                                                                    <td width="200" class="tdbg_2" id="makhachhang1"><strong>Mã khách hàng</strong></td>
                                                                    <td width="15" class="tdbg_2" id="makhachhang2">:</td>
                                                                    <td class="tdbg_2" id="makhachhang3"><strong><label id="lblAccountCode" runat="server"></label> (<label id="lblAccountName" runat="server"></label>)</strong></td>
                                                                </tr>
                                                                <tr id="dong0" class="light" bgcolor="">
                                                                    <td id="dong01" class="tdbg_2">Email<br></td>
                                                                    <td id="dong02" class="tdbg_2">:</td>
                                                                    <td id="dong03" class="tdbg_2"><label id="lblAccountEmail" runat="server"></label></td>
                                                                </tr>
                                                                <tr id="dong2" class="light" bgcolor="">
                                                                    <td id="dong21" class="tdbg_2">Loại dịch vụ<span class="color_khancap">*</span>
                                                                    </td>
                                                                    <td id="dong22" class="tdbg_2">:</td>
                                                                    <td id="dong23" class="tdbg_2">
                                                                        <input type="hidden" name="sky_id" value="126543">
                                                                        <input type="hidden" name="sky_group" value="1">
                                                                        <asp:DropDownList ID="cmbServiceType" cssClass="box_input cbo" name="techkind" 
                                                                            DataValueField="Id" DataTextField="Name" runat="server" 
                                                                            AutoPostBack="True" 
                                                                            onselectedindexchanged="cmbServiceType_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                            <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                                                                ErrorMessage="Bạn phải chọn Loại dịch vụ" cssClass="color_khancap"
                                                                                ControlToValidate="cmbServiceType" ClientValidationFunction="cmbValidator" 
                                                                                onservervalidate="cmbValidator_ServerValidate"></asp:CustomValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr id="dong1" class="light" bgcolor="">
                                                                    <td id="dong11" class="tdbg_2">Phòng ban <span class="color_khancap">*</span> <br>
                                                                    </td>
                                                                    <td id="dong12" class="tdbg_2">:</td>
                                                                    <td id="dong13" class="tdbg_2">
                                                                        <asp:DropDownList ID="cmbDepartment" cssClass="box_input cbo" name="dept" 
                                                                            DataValueField="Id" DataTextField="Name" runat="server" 
                                                                            AutoPostBack="True" onselectedindexchanged="cmbDepartment_SelectedIndexChanged">
                                                                        </asp:DropDownList>
                                                                        <asp:CustomValidator ID="CustomValidator2" runat="server" 
                                                                            ErrorMessage="Bạn phải chọn Phòng ban" cssClass="color_khancap"
                                                                            ControlToValidate="cmbDepartment" ClientValidationFunction="cmbValidator" 
                                                                            onservervalidate="cmbValidator_ServerValidate"></asp:CustomValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr id="dong3" class="light" bgcolor="">
                                                                    <td id="dong31" class="tdbg_2">Chủ đề <span class="color_khancap">*</span></td>
                                                                    <td id="dong32" class="tdbg_2">:</td>
                                                                    <td id="dong33" class="tdbg_2">
                                                                        <div id="div_tech">
                                                                            <asp:DropDownList ID="cmbTicketCategory" cssClass="box_input cbo" name="subject" 
                                                                                DataValueField="Id" DataTextField="Name" runat="server" AutoPostBack="True">
                                                                            </asp:DropDownList>
                                                                            <asp:CustomValidator ID="CustomValidator3" runat="server" 
                                                                                ErrorMessage="Bạn phải chọn chủ đề" cssClass="color_khancap"
                                                                                ControlToValidate="cmbTicketCategory" ClientValidationFunction="cmbValidator" 
                                                                                onservervalidate="cmbValidator_ServerValidate"></asp:CustomValidator>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr id="dong4" class="light" bgcolor="">
                                                                    <td id="dong41" class="tdbg_2">Dịch vụ <span class="color_khancap">*</span> <br>
                                                                        <strong class="font_10 color_khancap style2">Vui lòng chọn đúng để được hỗ trợ nhanh nhất</strong><br>
                                                                    </td>
                                                                    <td id="dong42" class="tdbg_2">:</td>
                                                                    <td id="dong43" class="tdbg_2"><input name="grop" value="1" type="hidden">
                                                                        <div id="div_service">
                                                                            <asp:DropDownList ID="cmbService" cssClass="box_input cbo" name="chonluadichvu" 
                                                                                DataValueField="Id" DataTextField="Desc" runat="server" 
                                                                                AutoPostBack="True" onselectedindexchanged="cmbService_SelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                            <asp:CustomValidator ID="CustomValidator4" runat="server" 
                                                                                ErrorMessage="Bạn phải chọn dịch vụ" cssClass="color_khancap"
                                                                                ControlToValidate="cmbService" ClientValidationFunction="cmbValidator" 
                                                                                onservervalidate="cmbValidator_ServerValidate"></asp:CustomValidator>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <div id="trServicePassword" runat="server">
                                                                <tr class="light">
                                                                    <td id="matkhau1" class="tdbg_2"><label id="lblServicePassword" runat="server">Password hosting</label> <br>
                                                                        <strong class="font_10 color_khancap style2">Vui lòng chọn đúng để được hỗ trợ nhanh nhất</strong><br>
                                                                    </td>
                                                                    <td id="matkhau2" class="tdbg_2">:</td>
                                                                    <td id="matkhau3" class="tdbg_2"><input class="box_input" type="password" id="txtServicePassword" name="passwd" size="20" runat="server"></td>
                                                                </tr>
                                                                </div>
                                                                <tr id="tieudeyeucau" class="light" bgcolor="">
                                                                    <td id="tieudeyeucau1" class="tdbg_2"><span>Tiêu đề yêu cầu<span class="color_khancap">*</span></span></td>
                                                                    <td id="tieudeyeucau2" class="tdbg_2">:</td>
                                                                    <td id="tieudeyeucau3" class="tdbg_2">
                                                                        <input class="box_input" type="text" id="txtSubject" name="subject" value="" width="100%" runat="server">
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" cssClass="color_khancap"
                                                                            ControlToValidate="txtSubject" ErrorMessage="Bạn vui lòng nhập Tiêu đề yêu cầu"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr id="cauhoi" class="light" bgcolor="#FFFDD5">
                                                                    <td class="tdbg_2" id="cauhoi1">Nội dung câu hỏi <span class="color_khancap">*</span></td>
                                                                    <td class="tdbg_2" id="cauhoi2">:</td>
                                                                    <td class="tdbg_2" id="cauhoi3">
                                                                        <CKEditor:CKEditorControl name="txtContent" id="txtContent"  runat="server" 
                                                                            BasePath="~/Assets/js/ckeditor" 
                                                                            ContentsCss="~/Assets/js/ckeditor/contents.css" 
                                                                            TemplatesFiles="~/Assets/js/ckeditor/plugins/templates/templates/default.js" 
                                                                            Toolbar="Basic" ToolbarStartupExpanded="False">
                                                                        </CKEditor:CKEditorControl>                    
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" cssClass="color_khancap"
                                                                            ControlToValidate="txtContent" 
                                                                            ErrorMessage="Bạn vui lòng nhập nội dung câu hỏi"></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr id="hinhanh" class="light">
                                                                    <td class="tdbg_2" id="hinhanh1">Hình minh họa nếu có<br>
                                                                        (*.gif, *.jpg, *.png, &lt; 200Kb)</td>
                                                                    <td class="tdbg_2" id="hinhanh2">:</td>
                                                                    <td class="tdbg_2" id="hinhanh3">
                                                                        <asp:FileUpload ID="txtFile" name="pic" runat="server" />
                                                                        <asp:CustomValidator ID="CustomValidator5" runat="server" cssClass="color_khancap" ControlToValidate="txtFile"
                                                                            ErrorMessage="Tập tin không hợp lệ" ClientValidationFunction="imageValidator"></asp:CustomValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr id="bonut" class="light" bgcolor="">
                                                                    <td class="tdbg_2" id="bonut1">&nbsp;</td>
                                                                    <td class="tdbg_2" id="bonut2">&nbsp;</td>
                                                                    <td class="tdbg_2" id="bonut3">
                                                                        <asp:Button ID="btnSend" runat="server" cssClass="buttonnew" Text="Gửi" 
                                                                            onclick="btnSend_Click" />
                                                                        &nbsp;
                                                                        <input name="Submit2" type="reset" class="buttonnew" value=" Làm lại ">
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
                                                            <tbody>
                                                                <tr class="light">
                                                                    <td><img src="../Assets/images/spaces.gif" width="1" height="1" border="0"></td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                    <td class="c-r"></td>
                                                </tr>
                                                <tr class="light">
                                                    <td class="b-l"></td>
                                                    <td class="b-c"></td>
                                                    <td class="b-r"></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td width="10"></td>
                                    <td width="180">
                                        <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr>
                                                    <td><img src="../Assets/images/spaces.gif" width="1" height="1" border="0"></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <uc1:uSidebar ID="uSidebar1" runat="server" />
                                        <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr class="light">
                                                    <td><img src="../Assets/images/spaces.gif" width="1" height="1" border="0"></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>  
                    <div class="clear20"></div>
                    <div class="clear20"></div>

                    <uc4:uFooter ID="uFooter1" runat="server" />

                    <div class="clear"></div>    
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btnSend"/>
            </Triggers>
        </asp:UpdatePanel>
</asp:Content>

